package com.yu.DAO;

import com.yu.POJO.Course;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: LittleFisher
 * @Date: 2021/05/31/9:07
 * @Description:
 */
public interface CourseDao {
    public int addCourse(Course course);
    public int delCourse(int id);
    public int updateCourse(Course course);
    public Course getCourseByID(int id);
    public List<Course> getAllCourse(@Param("start")int start, @Param("end")int end);
    public int getCourseTotal();
    public int getCourseTotalByType(@Param("c_type")String c_type,@Param("c_year")String c_year);
    public List<Course> getAllCourseByType(@Param("start")int start, @Param("end")int end,@Param("c_type")String c_type,@Param("c_year")String c_year);
    public List<Course> getCourseByTea_id(int tea_id);

    public List<Course> findCourseByPojo(Course course);

}
